project(FACTORIZE C CXX)

set(CMAKE_CXX_COMPILER mpicxx)
set(CMAKE_C_COMPILER mpicc)

set(ALL_LIBS elemental pmrrr plcg ${ALL_LIBS})

add_library(elem_DNMF
  anls.cc
)

target_link_libraries(elem_DNMF
  ${ALL_LIBS}
)

add_executable(elem_nmf
  elem_nmf_main.cpp 
  )

target_link_libraries (elem_nmf
  ${ALL_LIBS}
  ) 

add_executable(benchmark
  benchmark.cpp 
  )

target_link_libraries (benchmark
  ${ALL_LIBS}
  ) 

